#ifndef USERSLISTVIEWER_H
#define USERSLISTVIEWER_H

#include <QComboBox>
#include "userlist.h"

class UsersListViewer : public QComboBox
{
    Q_OBJECT
public:
    explicit UsersListViewer(UserList* List, QWidget *parent = 0);
    UsersListViewer(QWidget *parent=0);
    void setUsersList(UserList* list);     
    void uninclude(const int&uid);
    void refresh();
    void setFilter(const QString&unit);
private:
    UserList* m_list;
signals:
public slots:
    void setUser(const int&Index);
};

#endif // USERSLISTVIEWER_H
